#ifndef QERRORBUTTON_H
#define QERRORBUTTON_H

#include <QWidget>
#include "ui_qerrorbutton.h"

class QErrorButton : public QWidget
{
	Q_OBJECT

public:
	QErrorButton(QString id,QString icon,QString text,QWidget *parent = 0);
	~QErrorButton();

	QString id() const{ return m_id; }
	void deselect();
	bool checked() const { return ui.button->isChecked(); }

signals:
	void selected(const QString&);

public slots:
	void state();
private:
	Ui::QErrorButtonClass ui;
	QString m_id;
};

#endif // QERRORBUTTON_H
